-- GENERATED SPELL FOR [Coilfang Collaborator] --


function spell0_17962(pUnit, Event) --@Cripple,n/a--
pUnit:FullCastSpellOnTarget(33787,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17962', 18000, 1)
end

function spell1_17962(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_17962', 626, 1)
end

function spell2_17962(pUnit, Event) --@Revenge,n/a--
pUnit:FullCastSpellOnTarget(19130,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17962', 0, 1)
end

function Sorts_17962(pUnit, Event)
local choix_sorts_17962 = math.random(0, 2)
if choix_sorts_17962 == 0 then
pUnit:RegisterEvent('spell0_17962', 1, 1)
end
if choix_sorts_17962 == 1 then
pUnit:RegisterEvent('spell1_17962', 1, 1)
end
if choix_sorts_17962 == 2 then
pUnit:RegisterEvent('spell2_17962', 1, 1)
end
end

function mob17962_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17962', math.random(1500, 3000), 1)
end

function mob17962_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17962_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17962_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17962, 1, 'mob17962_Action')
RegisterUnitEvent(17962, 2, 'mob17962_Leave')
RegisterUnitEvent(17962, 3, 'mob17962_Kill')
RegisterUnitEvent(17962, 4, 'mob17962_Die')
